﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/MasterPages/Dialog.Master" AutoEventWireup="true" CodeBehind="ZHArchInfoForm.aspx.cs" Inherits="DMS.Web.Modules.ArchivesManagement.ZHArchInfoForm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageTitle" runat="server">
    资料信息
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainHolder" runat="server">
    <script type="text/javascript" src="/Resources/scripts/jquery.blockUI.js"></script>
    <script type="text/javascript" src="/Resources/Scripts/jquery-ui/ui/jquery.ui.core.min.js"></script>
	<script type="text/javascript" src="/Resources/Scripts/jquery-ui/ui/jquery.ui.widget.min.js"></script>
	<script type="text/javascript" src="/Resources/Scripts/jquery-ui/ui/jquery.ui.position.min.js"></script>
	<script type="text/javascript" src="/Resources/scripts/jquery-ui/ui/jquery.ui.mouse.min.js"></script>
    <script type="text/javascript" src="/Resources/scripts/jquery-ui/ui/jquery.ui.draggable.min.js"></script>
    <script type="text/javascript" src="/Resources/scripts/jquery-ui/ui/jquery.ui.button.min.js"></script>
    <script type="text/javascript" src="/Resources/scripts/jquery-ui/ui/jquery.ui.dialog.min.js"></script>
    <link rel="stylesheet" href="/Resources/Scripts/jquery-ui/themes/cupertino/jquery.ui.all.css">
<script type="text/javascript">
    var status = 0;
    function changeSize(obj) {
        if (status==0) {
            status = 1;
            $(obj).animate({
                "height": "316", "width": "500", "opacity": "1"
            }, "slow");
        }else {
            status = 0;
            $(obj).animate({
                "height": "48", "width": "80", "opacity": "1"
            }, "slow");
        }

    }

    function uploadTemplate() {
        var template = "/Resources/Templates/基本信息导入模板-单位.xls";
        var fileInfo = OpenFileUploaderWithFile("", template);
    }

    function OperatConfirm() {
        $("#dialog-confirm").dialog("open");
        return false;
    }
    
    $(function () {
        $("#dialog-confirm").dialog({
            resizable: false,
            height: 190,
            width: 480,
            modal: true,
            autoOpen: false,
            buttons: {
                "1.新建资料": function () {
                    window.open('ZHArchInfoForm.aspx');
                    alert('保存成功！');
                    window.opener = null;
                    window.open("", "_self");
                    window.close();
                },
                "2.继续录入": function () {
                    $(this).dialog("close");
                    alert('保存成功！请继续添加资料信息。');
                    window.location.href = window.location;
                },
                "3.关闭": function () {
                    $(this).dialog("close");
                    alert('保存成功！');
                    window.opener = null;
                    window.open("", "_self");
                    window.close();
                }
            }
        });
    });
</script>
    <fieldset>
    <legend>
        资料档案信息
    </legend>
    <div id="divContent" style="padding-top: 5px;" runat="server">
        <table cellpadding="1" cellspacing="2" border="0" class="orderformitem" width="98%">
            <tr>
                <th>
                    <nobr>
                        档案盒编号：
                    </nobr>
                </th>
                <td>
                    <asp:TextBox ID="PointName" runat="server">CQ-ZH-0000001</asp:TextBox><span class="red">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" ControlToValidate="PointName"
                        runat="server" ErrorMessage="请输入！"  ForeColor="Red" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
                <th>
                    <nobr>
                        档案盒所在位置：
                    </nobr>
                </th>
                <td>
                    <asp:TextBox ID="TextBox7" runat="server">A排第1行第1列</asp:TextBox><span class="red">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" ControlToValidate="PointName"
                        runat="server" ErrorMessage="请输入！" ForeColor="Red" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <th>
                    <nobr>
                        档案名称：
                    </nobr>
                </th>
                <td>
                    <asp:TextBox ID="TextBox1" runat="server">城区税务分局2011年社保费工作总结</asp:TextBox><span class="red">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="TextBox1"
                        runat="server" ErrorMessage="请输入！" ForeColor="Red" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
                <th>
                    所属年度：
                </th>
                <td>
                    <asp:DropDownList ID="ddlArea" runat="server" Width="55px">
                        <asp:ListItem Text=""></asp:ListItem>
                        <asp:ListItem Text="2011"></asp:ListItem>
                        <asp:ListItem Text="2010"></asp:ListItem>
                        <asp:ListItem Text="2009"></asp:ListItem>
                        <asp:ListItem Text="2008"></asp:ListItem>
                        <asp:ListItem Text="2007"></asp:ListItem>
                        <asp:ListItem Text="2006"></asp:ListItem>
                        <asp:ListItem Text="2005"></asp:ListItem>
                        <asp:ListItem Text="2004"></asp:ListItem>
                        <asp:ListItem Text="2003"></asp:ListItem>
                        <asp:ListItem Text="2002"></asp:ListItem>
                        <asp:ListItem Text="2001"></asp:ListItem>
                    </asp:DropDownList>
                    年
                   <span class="red">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="ddlArea"
                        runat="server" ErrorMessage="请输入！" ForeColor="Red" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>
                                       
                </td>                  
            </tr>
            <tr>
                <th>
                    <nobr>
                        档案形成日期：
                    </nobr>
                </th>
                <td>
                    <asp:TextBox ID="TextBox3"  onClick="WdatePicker()" runat="server">2011-11-16</asp:TextBox><span class="red">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="TextBox3"
                        runat="server" ErrorMessage="请输入！" ForeColor="Red" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
                <th>
                    <nobr>
                        档案保管起始日期：
                    </nobr>
                </th>
                <td>
                    2012-01-01
                </td>
            </tr>            
            <tr>
                <th>
                    <nobr>
                        保管年限(0为永久)：
                    </nobr>
                </th>
                <td>
                    <asp:TextBox ID="TextBox5" runat="server"  onblur="if(parseInt(this.value)!=this.value){alert('请输入合法数字！');this.value='';$(this).focus();}">10</asp:TextBox><span class="red">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" ControlToValidate="TextBox5"
                        runat="server" ErrorMessage="请输入！" ForeColor="Red" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
                <th>
                    <nobr>
                        档案到期日期：
                    </nobr>
                </th>
                <td>
                    2022-01-01
                </td>                
            </tr>
            <tr>
                <th>
                    <nobr>
                        张数：
                    </nobr>
                </th>
                <td>
                    <asp:TextBox ID="TextBox10" runat="server" onblur="if(parseInt(this.value)!=this.value){alert('请输入合法数字！');this.value='';$(this).focus();}">1</asp:TextBox><span class="red">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator11" ControlToValidate="TextBox10"
                        runat="server" ErrorMessage="请输入！" ForeColor="Red" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>
                </td>
                <th>
                    是否销毁：
                </th>
                <td>
                    <asp:DropDownList ID="DropDownList2" runat="server" Width="50px">
                        <asp:ListItem Text="是"></asp:ListItem>
                        <asp:ListItem Selected="True" Text="否"></asp:ListItem>
                    </asp:DropDownList>
                </td>              
            </tr>
            <tr>
                <th>
                    <nobr>
                        档案录入人员：
                    </nobr>
                </th>
                <td>
                    陈丽娟
                </td>
                <th>
                    档案录入日期：
                </th>
                <td>
                    2011-11-07
                </td>
            </tr>
            <tr>
                <th>
                    <nobr>
                        备注：
                    </nobr>
                </th>
                <td colspan="3">
                    <asp:TextBox ID="TextBox13" TextMode="MultiLine" Rows="4" Width="96%" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>
                    <nobr>
                        补充说明：
                    </nobr>
                </th>
                <td colspan="3">
                    <asp:TextBox ID="TextBox6" TextMode="MultiLine" Rows="4" Width="96%" runat="server"></asp:TextBox>
                </td>
            </tr>
    </table></div>
    </fieldset>

    <fieldset>
    <legend>
        资料扫描件列表
    </legend>
    <a onclick="uploadTemplate();" id="MainHolder_btnSearch" class="linkbtn _searchBtn" href="#"><span>上传扫描件</span></a>
    <!----------- 数据列表 ------------------>
            <div>
	            <table cellspacing="1" cellpadding="0" rules="all" class="dg_borderstyle" border="0" border="1" id="MainHolder_gvList">
		            <tr class="dg_headerstyle searchResult">
			            <th scope="col">                            
                        </th>
                        <th scope="col">
                            缩略图(点击切换)
                        </th>
                        <th scope="col">
                            扫描件名称</th><th scope="col">
                            上传日期</th><th scope="col">
                            上传人</th>
                            <th scope="col">
                            <nobr>
                            操作</nobr></th>
                            
		            </tr>
                    <tr class="dg_itemstyle gs searchResult">
			            <td style="width:20px;">
                            <input name="ctl00$MainHolder$gvList$ctl02$chkItem" type="checkbox" id="MainHolder_gvList_chkItem_0" class="_selectItem" value="b99563fb-8c9f-47ac-b045-7717d805e646,CS" />
                        </td>
                        <td>
                            <img src="../../Resources/Images/zongjie.png" 
                                style="cursor:pointer" width="80px" onclick="changeSize(this);"/>
                        </td>
                        <td> 
                            城区税务分局2011年社保费工作总结.jpg
                        </td>
                        <td>2011/11/7</td>
                        <td>雷明江</td>
                        <td>
                            <a onclick="" href="javascript:void(0)">打印</a>
                            <a onclick="" href="javascript:void(0)">删除</a>
                        </td>
		            </tr>
                </table>
            </div>
    </fieldset>
    <div id="dialog-confirm" title="请选择后续操作" style="display:none">
	<span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 65px 0;"></span>请选择具体后续操作：
    <br /><br />1.新建资料：保存后弹出新建窗口，并清空表单数据；<br />
    2.继续录入：保存后弹出新建窗口，并自动补全表单数据，录入员只要修改部分字段即可提交；<br />
    3.关闭：保存并关闭窗口。
    </div>
</asp:Content>

<asp:Content ID="ctFooter"  ContentPlaceHolderID="FooterHolder" runat="server">
<asp:LinkButton ID="btnSave" CssClass="linkbtn" runat="server" OnClientClick="return OperatConfirm();"
        CausesValidation="true"><span>保存</span></asp:LinkButton>&nbsp;&nbsp;
<a href="javascript:window.close();" class="linkbtn"><span>关闭</span></a>
</asp:Content>